package tt.com;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import org.assertj.core.util.Lists;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;
import tt.com.carmanager.mapper.DriveTaskMapper;
import tt.com.carmanager.vo.TeamTimeVo;
import tt.com.common.model.DriveTask;

import java.util.ArrayList;
import java.util.List;

/**
 * @author BEAN
 * @version 2020
 * @date 2022/9/1 18:20
 */
public class test11 {

    @Autowired
    private DriveTaskMapper driveTaskMapper;

    @Test
    public void  test01(){
        List<Integer> list = new ArrayList<>();
        list.add(1);
        list.add(2);
        list.add(3);

        System.out.println("普通for循环遍历");
//        for (int i = 0; i < list.size(); i++) {
//            System.out.println(list.get(i));
//        }
        for (Integer integer : list) {
            System.out.println("第" + integer + "次输出");
        }
    }

//    @Test
//    public void test02(TeamTimeVo teamTimeVo){
//        teamTimeVo.setTeamId("1");
//        QueryWrapper<DriveTask> wrapper = new QueryWrapper();
//        wrapper.eq("id", "1");
//        List<DriveTask> list = driveTaskMapper.selectList(wrapper);
//        for (DriveTask item : list) {
//            System.out.println(item.getId());
//        }
//    }
}
